package sg.edu.nus.iss.billing.parse;

import java.io.IOException;
import java.io.LineNumberReader;
import java.util.ArrayList;
import java.util.HashMap;
/**
 * @author sammil
 *
 */
public class SubscriptionHeaderState extends ParserState {

	
	public static final SubscriptionHeaderState SINGLETON = new SubscriptionHeaderState();
	
	private  SubscriptionHeaderState() {
		
	}

	@Override
	public <L> ParserState parse(LineNumberReader in, HashMap<String,ArrayList<L>> outputMap)
			throws IOException {
		// TODO Auto-generated method stub
		//System.out.println("\nIn SubscriptionHeaderState");
		if (!SubscriptionHeaderParser.SINGLETON.parse(in, outputMap)) {

			throw createException("Expected Account header", in);
		}
		return FinishedState.SINGLETON;
	}

}
